From 16320c2cdf4f900db348f851ed45b71c824cd526 Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Wed, 28 Mar 2007 10:04:32 +0100 Subject: [PATCH] Fix diagnosis of unhandled exceptions. Signed-off-by: Ewan Mellor --- tools/python/xen/xm/main.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index 87f5ae29a8..77d647f402 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -2371,11 +2371,10 @@ def _run_cmd(cmd, cmd_name, args): if isinstance(e, security.ACMError): err(str(e)) return False, 1 - else: - print "Unexpected error:", sys.exc_info()[0] - print - print "Please report to xen-devel@lists.xensource.com" - raise + print "Unexpected error:", sys.exc_info()[0] + print + print "Please report to xen-devel@lists.xensource.com" + raise return False, 1 -- 2.30.2